<?php
namespace app\user\event\subscribes\user;

use think\Event;
use app\user\event\listeners\balance\BalanceFlow;
use app\user\logic\user\NotifyMessage;

class Balance
{
    public function subscribe(Event $event)
    {
        /** BalanceUpdate */
        // 变更余额后触发通知
        // $event->listen('BalanceUpdate', function ($param) {
        // 	$param['notify_type'] = 3;
        // 	app(NotifyMessage::class)::create($param);
        // });
        // 变更余额后触发流水操作
        // $event->listen('BalanceUpdate', BalanceFlow::class);

    }
}
